process.on('exit', function(code) {

  // 以下代码永远不会执行
  setTimeout(function() {
    console.log("该代码不会执行");
  }, 0);
  
  console.log('退出码为:', code);
});
console.log("程序执行结束");


process.stdout.write("Hello World!" + "\n");


process.argv.forEach(function(val, index, array) {
   console.log(index + ': ' + val);
});

console.log(process.execPath);

console.log(process.platform);
